In linear algebra, a set of matrices is said to commute if they commute pairwise, meaning for every pair i, j (equivalently, the commutator vanishes: ; more abstractly, if the algebra they generate is an abelian Lie algebra).
Commuting matrices over an algebraically closed field are simultaneously triangularizable; indeed, over the complex numbers they are unitarily simultaneously triangularizable. Further, if the matrices have eigenvalues then a simultaneous eigenbasis can be chosen so that the eigenvalues of a polynomial in the commuting matrices is the polynomial in the eigenvalues. For example, for two commuting matrices with eigenvalues one can order the eigenvalues and choose the eigenbasis such that the eigenvalues of are and the eigenvalues for are This was proven by Frobenius, with the two-matrix case proven in 1878, later generalized by him to any finite set of commuting matrices.
This is generalized by Lie's theorem, which shows that any representation of a solvable Lie algebra is simultaneously upper triangularizable, the case of commuting matrices being the abelian Lie algebra case, abelian being a fortiori solvable.
References given in (Drazin 1951).
The notion of commuting matrices was introduced by Cauchy in his Memoir on the theory of matrices, which also provided the first axiomatization of matrices. The first significant results proved on them was the above result of Frobenius in 1878.